package com.yidu.erp.dao;

import java.util.List;
import java.util.Map;

import com.yidu.erp.model.BeyondFdstock;
import com.yidu.erp.model.BeyondFinancialIncome;
import com.yidu.erp.model.BeyondMoney;
import com.yidu.erp.service.sell.BeyondFdstockService;

public interface BeyondFdstockMapper {
    int deleteByPrimaryKey(String fdId);
   
    int insert(BeyondFdstock record);

    /**
     * 增加销售明细
     * @param record
     * @return
     */
    int insertSelectiveFdId(BeyondFdstock record);

    BeyondFdstock selectByPrimaryKey(String fdId);

    int updateByPrimaryKeySelective(BeyondFdstock record);

    int updateByPrimaryKey(BeyondFdstock record);
    
    /**
	 * 销售
	 * @param map
	 * @return
	 */
	List<Map<String, Object>> selectbyWareId(Map<String, Object>map);
	

	
	/**
	 * 修改库存
	 * @return
	 */
	 int update(Map<String, Object>map);
	 
	 
	 /**
	  * 增加财务收入
	  * @param map
	  * @return
	  */
	 int insertSelective(BeyondFinancialIncome  bfl);
	 
	 
	 /**
	  * 根据分店ID查询财务ID
	  * @param map
	  * @return
	  */
	 int  selectMoneyById(Map<String, Object>map);
	 
	 /**
	  * 修改财务
	  * @param map
	  * @return
	  */
	  int updateMoney(Map<String, Object>map);
}